﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
    Inherits="System.Web.Mvc.ViewPage<Bastanteo.Domain.Cargo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Modificacion
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Modificacion de Cargo</h2>

    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Modificar", "Cargo", FormMethod.Post)) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CargoId) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CargoId) %>
                <%: Html.ValidationMessageFor(model => model.CargoId) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CargoDescripcion) %>
            </div>

            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CargoDescripcion) %>
                <%: Html.ValidationMessageFor(model => model.CargoDescripcion) %>
            </div>
            
            <p>
                     <input type="submit" value="Guardar" Class="btnout" style="width:70px"/>
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la lista", "Index")%>
    </div>

</asp:Content>

